﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RuleCode.Common
{
    /// <summary>
    /// 属性类Attribute的派生类 用来标志Table表中的每个字段Field的分类的
    /// </summary>
    public class FieldAttribute : System.Attribute
    {
        private FieldCategory fieldCate;

        public FieldAttribute(FieldCategory field) { this.fieldCate = field; }
        public FieldAttribute(int i) { this.fieldCate = (FieldCategory)i; }

        /// <summary>
        ///枚举类型FieldCategory 字段分类 
        /// </summary>
        public FieldCategory FieldCate { get { return this.fieldCate; } set { this.fieldCate = value; } }
    }

}
